<template>
    <div class='content'>
      <div class="head-box">
        <p>安居客</p>
      </div>
      <div class="logreg-box">
        <div @click="toLogin">登录</div>
        <div @click="toRegister">注册</div>
      </div>
      <div class="backMine" @click="backMine">
        <van-icon name="arrow-left" />
      </div>
    </div>
</template>

<script>

export default {
    name: '',
    methods:{
      backMine(){
        this.$router.back()
      },
      toLogin(){
        this.$router.replace('/login')
      },
      toRegister(){
        this.$router.replace('/register')
      }
    }
}
</script>

<style scoped>
.content {
  display: flex;
  position: relative;
  flex-direction: column;
  height: 100vh;
}
.head-box {
  height: 250px;
  background-color: #ff5456;
  color: #fff;
  font-size: 50px;
  text-align: center;
  line-height: 250px;
}
.logreg-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 300px;
}
.logreg-box div{
  height: 40px;
  width: 250px;
  text-align: center;
  line-height: 40px;
  margin-bottom: 30px;
  border: 1px solid #FF5654;
  font-size: 18px;
  border-radius: 5px;
}
.logreg-box div:nth-child(1) {
  background-color: #FF5654;
  color: #fff;
}
.logreg-box div:nth-child(2) {
  color: #FF5654;
}
.backMine {
  position: absolute;
  top: 0;
  left: 0x;
  padding: 10px;
  padding-left: 10px;
  font-size: 25px;
  color: #fff;
}
</style>